home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Sunday Times: The Month 2003 December
/
The Sunday Times - The Month 2003-12.iso
/
mac
/
The Month DEC 03
/
engine
/
modules
/
thumbs_wide.swf
/
scripts
/
DefineSprite_7
/
frame_1
/
DoAction.as
Wrap
Text File
|
2003-10-02
|
727b
|
31 lines
function init()
{
num = _name.split("_")[2];
var nd = _parent._parent.nodeData.childNodes[num];
link = nd.attributes.link;
titleFF.htmlText = nd.byName("thumbtitle").getText();
titleFF.textColor = _parent._parent.DEFAULT_COLOR;
imgToCheck = eval("_parent.mc_img_" + num);
this.intervalID = setInterval(checkLoad,300,this);
}
function checkLoad(mc)
{
if(imgToCheck._height > 0)
{
if(!positioned)
{
positioned = true;
_parent._parent.positionElements(mc);
clearInterval(this.intervalID);
}
}
}
var positioned = false;
_visible = false;
this.onUnload = function()
{
clearInterval(this.intervalID);
};
init();
delete init;